var LoginPanel = cc.Class({
	name: 'LoginPanel',
	
	ctor: function () {
        this.viewName = "";
        this.panel = null;
	},
    
    awake: function(){
        console.log(this.viewName);
        //ViewMgr.showView(VIEW.MAIN)
        this.button_login = this.panel.getChildByName("button_login").getComponent(cc.Button);
        this.Label = this.button_login.node.getChildByName("Background").getChildByName("Label").getComponent(cc.Label);
        this.button_login.node.on(cc.Node.EventType.TOUCH_END,this.loginHandler,this);
    },

    loginHandler: function(){
        ViewMgr.showView(VIEW.MAIN)
    },


});

